# 基础镜像
FROM registry.cn-hangzhou.aliyuncs.com/haozheyu/npm_yarn:v1

# 设置项目目录
WORKDIR /app

# 安装依赖
COPY package.json .
COPY /tmp/node_modules .
RUN npm install

# 启动项目
CMD ["npm", "run", "serve"]